package lesson5;

import java.util.function.Consumer;
import java.util.function.IntConsumer;

/**
 * <br/>
 * Created on : 2018-01-28 15:31
 * @author lizebin
 */
public class ConsumerInputTest {

	public static void main(String[] args) {
		Consumer<Integer> consumer = System.out::println;
		IntConsumer intConsumer = System.out::println;
		//类型转换异常
		Consumer intConsumer1 = (Consumer) intConsumer;
		a(consumer);
		a(intConsumer1);
	}

	public static void a(Consumer<? super Integer> action) {
	}
}
